package org.bapoint.bawirelessprogressordercenter.controller;

import com.fasterxml.jackson.core.JsonProcessingException;
import jakarta.annotation.Resource;
import org.bapoint.api.user.feign.OrderFeignClient;
import org.bapoint.bawirelessprogressordercenter.entity.enums.HttpStatusEnum;
import org.bapoint.common.response.ServerResponseEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName FirstWirelessProgressController
 * @Description TODO
 * @Author 王逸攀
 * @Date 2025/9/5 16:45
 * @Version 1.0
 */
@RestController
@RequestMapping("/orderCenter")
public class WirelessProgressOrderCenterController extends RestBase {

    @Autowired
    private OrderFeignClient orderFeignClient;


    @GetMapping("/firstApi")
    public Object firstApi() {
        List<Long> integers = List.of(22l, 33l, 44l, 55l);
        ServerResponseEntity<Object> response = orderFeignClient.getOrdersAmountAndIfNoCancel(integers);
        return ajaxSuccess(response.getData(), HttpStatusEnum.OK, "操作成功！");
    }

}
